﻿using System.Collections.Generic;
using ZilLion.Service.Core.DapperWrapper;
using ZilLion.Service.WeChatMall.Domain.Entitys.Orders;

namespace ZilLion.Service.WeChatMall.Domain.Repositorys.Interface.Order
{
    public interface IOrderDetailRepository
    {
        #region 保存

        /// <summary>
        ///     批量保存明细数据(先删后插)
        /// </summary>
        /// <param name="entitys"></param>
        /// <param name="orderMain"></param>
        /// <param name="unit"></param>
        void SaveOrderDetailBatch(IList<OrderDetailEntity> entitys, OrderMainInfoDto orderMain, UnitOfWork unit = null);

        #endregion

        #region 查询

        IList<OrderDetailEntity> GetOrderDetails(string sno);
        IList<OrderDetailEntity> GetOrderDetails(IList<string> snolist);

        #endregion
    }
}